<?php

namespace app\admin\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Info extends Model
{
    protected $pk = 'info_id';

   

    public function description()
    {
        return $this->hasmany("info_description", 'info_id', "info_id");
    }

    public function infoCats(){
    	return $this->hasmany("info_cat","info_id","info_id");
    }


    public function cats(){
        return $this->hasManyThrough(CatDescription::class, InfoCat::class,'info_id','cat_id','info_id','cat_id');
   
    }
}
